package net.csdn.business.common.domain.request.oauth;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * 新增accessToken信息对象DTO oauth_access_token
 * 
 * @author zhangyl
 * @date 2022-11-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NewOauthAccessTokenDTO implements Serializable
{

    private static final long serialVersionUID = 1L;

    /** tokenId */
    private String tokenId;

    /** 序列化后的token */
    private byte[] token;

    /** authenticationId */
    private String authenticationId;

    /** 用户名 */
    private String userName;

    /** clientId */
    private String clientId;

    /** 序列化后的authentication */
    private byte[] authentication;

    /** refreshToken */
    private String refreshToken;

    /** token过期时间 */
    private Date expirTime;

    /** token类型：1:oauth2生成的token;2:私人永久token */
    private Integer tokenType;

    /** 创建人 */
    private String createdBy;
}
